<? defined('_JEXEC') or die('Restricted access');?>
<? @style(@mediaurl.'/com_bib/css/bib.css'); ?>

<form action="<?= @route('index.php?option=com_bib&view=book&layout=form&id='.@$book->id) ?>" method="post" class="adminform" name="adminForm" >
	<fieldset>
		<legend><?= @text('Book'); ?></legend>
			<table class="admintable">
				<tr>
					<td width="100" align="right" class="key">
						<label for="title">
						<?= @text( 'Title' ); ?>:
						</label>
					</td>
					<td>
						<input type="text" name="title" id="title" size="48" maxlength="250" value="<?= @$book->title; ?>" />
					</td>
				</tr>
				<tr>
					<td width="100" align="right" class="key">
						<label for="author">
						<?= @text( 'Author' ); ?>:
						</label>
					</td>
					<td>
						<?= @helper('admin::com.bib.helper.select.authors', @$book->bib_author_id) ?>
					</td>
				</tr>
				<tr>
					<td width="100" align="right" class="key">
						<label for="genre">
						<?= @text( 'Genre' ); ?>:
						</label>
					</td>
					<td>
						<?= @helper('admin::com.bib.helper.select.genres', @$book->bib_genre_id) ?>
					</td>
				</tr>
								<tr>
					<td width="100" align="right" class="key">
						<label for="text">
						<?= @text( 'Text' ); ?>:
						</label>
					</td>
					<td>
			<?= KFactory::get('lib.joomla.editor', array('tinymce'))->display( 'text',  @$book->text , '100%', '50', '75', '20', null, array('theme' => 'simple')) ; ?>
					</td>
				</tr>
				<tr>
					<td width="100" align="right" class="key">
						<label for="enabled">
						<?php echo @text( 'enabled' ); ?>:
						</label>
					</td>
					<td>
					<?=@helper('select.booleanlist', 'enabled', null, @$book->enabled) ?>
					</td>
				</tr>
			</table>
			<input type="hidden" name="id" value="<?=@$book->id?>" />	
	</fieldset>
</form>